Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on Centos 8/Convert to python3 #42

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

peterverraedt
Copy link

@peterverraedt peterverraedt commented Dec 4, 2019

As from RedHat 8, there is no 'default' version of python (no /usr/bin/python) and python 3.6 is the default supported version (available under /usr/bin/python3, /usr/bin/python36). Yumbootstrap therefore cannot run. Python 2 can still be installed, but the rpm-module is no longer available, so just adjusting the paths is not a solution.

To support running yumbootstrap on RedHat 8 and Centos 8 (yum 4.*), I suggest migrating to python 3. As the python3-rpm package is available on older versions, it is also possible to run a python 3-variant on Centos 7.

Remaining issues:

  • Support on older Centos'es is untested (Centos 7 works)
  • Currently debian builds do not work, because the rpm module is not available for python3.
  • There is a dependency on the bsddb3 python module provided by epel packages.

You are free to ignore this pull request or comment about how to solve this in another way (or wait until Centos 8 is more mainstream).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant